<template>
    <div class="main" data-paihang-001>
        <div class="header" data-paihang-001>
            <dv-border-box-12>
                <div class="header-main" data-paihang-001>

                    <div class="header-title" data-paihang-001>
                        <span data-paihang-001>排行榜</span>
                        <dv-decoration-5 dur="5" style="width:300px;height:40px;" :color="['#f5a819']"/>
                    </div>
                    <div class="tab" data-paihang-001>
                        <div class="card" id="c1" @click="toHuoYue" data-paihang-001>
                            <span data-paihang-001>总分排名</span>
                        </div>
                        <div class="card" id="c2" @click="toTianShu" data-paihang-001>
                            <span data-paihang-001>询问次数</span>
                        </div>
                        <div class="card" id="c3" @click="toShiChang" data-paihang-001>
                            <span data-paihang-001>连续天数</span>
                        </div>
                        <div class="card" id="c4" @click="toQiandao" data-paihang-001>
                            <span data-paihang-001>签到排行</span>
                        </div>
                    </div>
                </div>
            </dv-border-box-12>
        </div>

        <div class="body" data-paihang-001>
            <router-view></router-view>
        </div>
    </div>
</template>
<script>
export default {
    data(){
        return{
            qiandaoData:[],
            shichangData:'',
            tianshuData:'',
            huoyueData:''
        }
    },
    methods:{
        toQiandao(){
            this.$router.push('/paihangbang/qiandao')
        },
        toShiChang(){
            this.$router.push('/paihangbang/shichang')
        },
        toTianShu(){
            this.$router.push('/paihangbang/tianshu')
        },
        toHuoYue(){
            this.$router.push('/paihangbang/huoyue')
        },
        
    },
    mounted(){
        // this.getQiandaoData()
    }
}
</script>
<style scoped>
.main[data-paihang-001]{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background-image: url('../../../public/img/cool-background.svg');
  background-color: #fff;
    background-size: 100% 100%;
    background-repeat:no-repeat;
}
.header[data-paihang-001]{
    margin: 5px;
    height: 30%;
    width: 80%;
}
.header-main[data-paihang-001]{
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    width: 100%;
}
.header-title[data-paihang-001]{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 300px;
    height: 100%;
    color: #000;
}
.header-title span[data-paihang-001]{
    display: block;
    width: 300px;
    height: 100px;
    text-align: center;
    line-height: 100px;
    font-size: 50px;
    font-weight: 800;
}
.tab[data-paihang-001]{
    display: grid;
    height: 160px;
    width: 140px;
    place-items: center;
}
.card[data-paihang-001] {
    width: 140px;
    height: 160px;
    background: rgba(211, 211, 211, 0.199);
    position: absolute;
    transition: .3s ease-in-out;
    cursor: pointer;
    box-shadow: 0px 0px 20px -10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.card[data-paihang-001] span[data-paihang-001]{
    display: block;
    width: 26px;
    height: 120px;
    margin: 10px 0 0 10px;
    font-size: 22px;
    color: #fff;
}
.tab div:last-child span[data-paihang-001]{
    margin: 15px auto;
    border-radius: 9px;
}
#c1[data-paihang-001] {
    background: #8b9bc1;
box-shadow: inset -7px -7px 11px #5f6983,
            inset 7px 7px 11px #b7cdff;
}

#c2[data-paihang-001] {
    background: #7d8ab5;
    box-shadow: inset -7px -7px 11px #555e7b,
                inset 7px 7px 11px #a5b6ef;
}

#c3[data-paihang-001] {
    background: #505690;
box-shadow: inset -7px -7px 11px #363a62,
            inset 7px 7px 11px #6a72be;
}

#c4[data-paihang-001] {
    background: #323377;
    box-shadow:  -12px 12px 0px #21214d,
                12px -12px 0px #4445a1;
}

.tab:hover #c1 {
    transform: translateX(-100px) rotate(-40deg);
}

.tab:hover #c2 {
    transform: translateX(-50px) rotate(-30deg);
}

.tab:hover #c3{
    transform: translateX(0) rotate(-20deg);
}

.tab:hover #c4 {
    transform: translateX(50px) rotate(-10deg);
    box-shadow: inset -7px -7px 11px #222351,
                inset 7px 7px 11px #42439d;
}

#c1:hover{
    transform: translateX(-150px) rotate(0deg) !important;
}

#c2:hover {
    transform: translateX(-100px) rotate(0deg) !important;
}

#c3:hover{
    transform: translateX(-50px) rotate(0deg) !important;
}

#c4:hover {
    transform: translateX(50px) rotate(0deg) !important;
    box-shadow: inset -7px -7px 11px #222351,
                inset 7px 7px 11px #42439d;
}

.body[data-paihang-001]{
    width: 100%;
    height: 665px;

}
</style>
